package com.pcs.model;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;

public class Blog extends Model<Blog> {
	
public static final Blog blogDao = new Blog();
	
	public Page<Blog> paginate(int pageNumber, int pageSize) {
		return paginate(pageNumber, pageSize, "select *", "from blog where status = 'A' order by createdate DESC  ");
	}
	
	public Page<Blog> _paginate(int pageNumber, int pageSize) {
		return paginate(pageNumber, pageSize, "select *", "from blog where status = 'I' order by createdate DESC ");
	}

}
